<%@page import="java.util.Map"%>
<%@page import="edu.tomee.db.DatabaseConnection"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Message</title>
<jsp:include page="/WEB-INF/jspf/header.jsp"></jsp:include>
<script src="${pageContext.request.contextPath}/js/util.js"></script>
</head>
<body class="metro">
	<div class="grid" style="padding-left: 15px;">
		<div class="row">
			<div class="span4">
				Welcome "${sessionScope.rslt.fname}"
				<div class="grid" style="padding-right: 20px;">
					<jsp:include page="/WEB-INF/jspf/leftmenu.jsp"></jsp:include>
				</div>
			</div>
			<div class="span8">
				<div class="div-header">
					<h3 class="head-title">Write Message</h3>
				</div>
				<form method="post" action="SendMsgServlet">
					<p>
						<select size="1" name="D1">
							<c:forEach var="userInfo" items="${sessionScope.al_user}">
								<option ${userInfo.uid == param['sid'] ? "selected=selected" : ""} value="${userInfo.uid} ">${userInfo.fname}</option>
							</c:forEach>
						</select>
					</p>
					<p>
						<textarea rows="2" onkeyup="toggleSubmit(this)" name="S1" cols="60" style="margin: 0px; height: 95px; width: 584px;"></textarea>
					</p>
					<p>
						<input disabled="disabled" class="button small info" type="submit" value="Send" id="b1">
					</p>
				</form>
			</div>
		</div>
	</div>
</body>
</html>